<?php

   class EmailAction extends BaseAction{
		public function index(){
			$email = $_GET['email'];
			$result = M("vip")->where("v_email=$email")->select();
			if($result){
				$success =M("vip")->where("v_email=$email")->data("state=1")->save();
				echo M("vip")->getlastsql();
				if($success){
					$this->redirect('Index/index', 0, "激活成功");
				}
			}
		
		}
   
   }


?>